gusucode.com > MATLAB神经网络实例与精析随书源程序 > 第4章 单层感知器/code/example4_4.m
% example4_4.m figure; subplot(2,1,1); n = -5:0.01:5; plot(n,hardlim(n),'LineWidth',2); % hardlim函数值 subplot(2,1,2); plot(n,hardlims(n),'r','LineWidth',2) % hardlims函数值 title('hardlims'); subplot(2,1,1); title('hardlim');